<?php /*a:3:{s:62:"D:\phpStudy\WWW\tp5\application\index\view\index\feedback.html";i:1548152803;s:60:"D:\phpStudy\WWW\tp5\application\index\view\index\header.html";i:1550326364;s:60:"D:\phpStudy\WWW\tp5\application\index\view\index\footer.html";i:1550326435;}*/ ?>
 <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>广州商学院lms</title>
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" src="/static/lib/layui/layui.js"></script>
    <script type="text/javascript" src="/static/js/jquery.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/lib/layui/css/layui.css" />
    <style>
        body{
            background: #F7F7F7;
        }
       
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">广州商学院-lms</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="<?php echo url('index'); ?>">首页</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <?php if(app('session')->get('user')): ?>
                <a href="javascript:;">
                    <?php if(app('session')->get('user.img')): ?>
                    <img src="/uploads/<?php echo htmlentities(app('session')->get('user.img')); ?>" class="layui-nav-img">
                    <?php else: ?>
                    <img src="/static/img/头像默认.png" class="layui-nav-img">
                    <?php endif; ?>
                    <?php echo htmlentities(app('session')->get('user')->userinfo->realname); ?>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">切换账号</a></dd>
                </dl>
                <?php else: ?>
                <a href="<?php echo url('login'); ?>">登录</a>
                <?php endif; ?>
            </li>
            <li class="layui-nav-item">
                <?php if(app('session')->get('user')): ?>
                <a href="<?php echo url('logout'); ?>">注销</a>
                <?php else: ?>
                <a href="<?php echo url('regist'); ?>">注册</a>
                <?php endif; ?>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li id="lab_app" class="layui-nav-item">
                    <a class=""  href="javascript:;">实验室预约</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<?php echo url('lab_empty'); ?>">空实验室</a></dd>
                        <!--<dd><a href="javascript:;">列表二</a></dd>-->
                    </dl>
                </li>
                <li id="tool_app" class="layui-nav-item">
                    <a href="javascript:;">器具租借</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<?php echo url('tool_small_app'); ?>">小型器具借用申请</a></dd>
                        <dd><a href="<?php echo url('tool_big_app'); ?>">大型器具借用申请</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" id="lab_yuyue">
                    <a href="javascript:;">预约进度</a>
                    <dl class="layui-nav-child">
                        <dd id="now_yuyue"><a href="<?php echo url('lab_app_list'); ?>">课室当前预约</a></dd>
                        <dd id="old_yuyue"><a href="<?php echo url('lab_history_list'); ?>">课室历史预约</a></dd>
                        <dd id="tool_yuyue"><a href="<?php echo url('tool_list'); ?>">器具借用进度</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" id="teacher_list"><a href="<?php echo url('teacher_list'); ?>">联系教师</a></li>
                <li class="layui-nav-item" id="notice"><a href="<?php echo url('notice'); ?>">公告消息</a></li>
                <li class="layui-nav-item" id="feedback"><a href="<?php echo url('feedback'); ?>">问题反馈</a></li>
                <li class="layui-nav-item" id="about_me"><a href="<?php echo url('about_me'); ?>">关于我的</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">

<div style="padding:20px; ">
    <div style="background: #FFFFFF;padding: 20px 50px;">
        <div style="margin: 10px 0px;">
        <span class="layui-breadcrumb">
  <a href="">首页</a>
  <a><cite>问题反馈</cite></a>
</span>
        </div>

        <div id="editor" style="margin-bottom: 20px;"></div>
        <button class="layui-btn layui-btn-fluid" onclick="add()">提交</button>
    </div>
</div>
</div>

<div class="layui-footer">
    <!-- 底部固定区域 -->
    Copyright-2018-实验室管理系统网
</div>
</div>
<script>
    //JavaScript代码区域
    layui.use('element', function() {
        var element = layui.element;

    });
</script>
</body>
</html>

<script type="text/javascript" src="/static/lib/wangEditor-3.1.1/release/wangEditor.js"></script>
<script>
    $('#feedback').addClass("layui-nav-itemed");
    var E = window.wangEditor
    var editor = new E('#editor')
    editor.customConfig.uploadImgShowBase64 = true   // 使用 base64 保存图片
    // editor.customConfig.uploadFileName = 'images'
    // editor.customConfig.uploadImgServer = "<?php echo url('feedback_img'); ?>"
    // 或者 var editor = new E( document.getElementById('editor') )
    editor.create()

    function add() {
        $.post(
            "",
            {content: editor.txt.html()},
            function (data) {
                layui.use('layer', function () {
                    var layer = layui.layer;
                    if (data.statu == 200) {
                        layer.msg(data.msg);
                        editor.txt.html('<p></p>')
                    } else {
                        layer.msg(data.msg);
                    }
                });
            }
        )
        // alert(editor.txt.html())
    }
</script>

